﻿namespace NTLib.Core.Serialization
{
    using System;
    using System.Collections.Generic;
    using System.IO;
    using System.Linq;
    using System.Text;
    using System.Threading.Tasks;

    /// <summary>
    /// 
    /// </summary>
    public interface ISerializor
    {
        /// <summary>
        /// Read an object from a stream.
        /// </summary>
        T ReadObject<T>(Stream stream);

        /// <summary>
        /// Read an object from a stream.
        /// </summary>
        object ReadObject(Type wantedType, Stream stream);

        /// <summary>
        /// Writes the object.
        /// </summary>
        void WriteObject(object obj, Stream stream);
    }
}
